<%@ page import="java.util.List" %>
<%@ page import="DroidEye.JavaBean.AdjuBean" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="DroidEye.DAO.AdjuDAO" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<jsp:include page="RightSideBackGroundSetter.jsp"/>
<html>
<head>
    <title>Title</title>

</head>
<body>
<div class="pad10">
<div class="font18 acenter bold">为项目分配评审员</div>
<%
    List<AdjuBean> adjuList = new ArrayList<AdjuBean>();
    AdjuDAO adjuDAO = AdjuDAO.getAdjuDAOInstance();
    adjuList = adjuDAO.queryAllAdju();
%>
    <div class="pad-bottom10">
        <%
            if (adjuList.isEmpty()){
        %>
        暂无评审员，请先添加评审员！
        <a href="AdminAddAdju.jsp">添加</a>
        <%
            } else {
        %>

        <div class="font18 bold">全部评审员如下</div>
        <div>
            点击评审员学号可设置为其设置评审项目<br>
        </div>
    </div>
    <table id="tab2" class="tablelist">
        <tr>
            <th align="center" valign="middle">评审员号</th>
            <th align="center" valign="middle">评审员姓名</th>
        </tr>
        <%
            for (AdjuBean adju : adjuList
                    ) {
        %>
        <tr>
            <td align="center" valign="middle">
                <a href="AdminProjectAdjuSetter.jsp?message=<%=adju.getAdjuID()%>"><%=adju.getAdjuID()%>
                </a>
            </td>
            <td align="center" valign="middle"><%=adju.getAdjuName()%>
            </td>
        </tr>
        <%
            }
            }
        %>

    </table>
</div>
</body>
</html>
